import request from '@/utils/request'

// 获取报事报修分页
export function reportForRepairsPage(data) {
	return request({
		url: '/base/reportforrepairs/page',
		method: 'get',
		data: data
	})
}
// 删除报事报修
export function reportForRepairsDelete(data) {
	return request({
		url: '/base/reportforrepairs/delete',
		method: 'post',
		data: data
	})
}

// 提交报事报修表单 edit为true时为编辑，默认为新增
export function reportForRepairsSubmitForm(data, add = true) {
	return request({
		url: '/base/reportforrepairs/' + (add ? 'add' : 'edit'),
		method: 'post',
		data: data
	})
}
